<h2>Previewing Path: <a href="#" onclick="javascript:BrowsePath(<%=@path.id%>);"><%= @path.title %></a> by <%= link_to @path.user.login, {:controller=>'users', :action=>'paths', :id=>@path.user.id}, {:class => 'admin'} %>
  <%= link_to 'edit', edit_path_path(@path), {:class=>'admin'} unless !is_authorized(@path.user, 'admin') %> 
  
  </h2>
<div id="steps">
  <% if !is_authorized(@path.user, 'admin') && @path.published != true %>
    <p>You are not the path owner and the owner has not made this path public. Please ask the owner to make this path public so you can view it!
  <% else %>
    <h2><a href="#" onclick="javascript:BrowsePath(<%=@path.id%>);">View It Live!</a><br /></h2>
    <% 0.upto(@steps.length - 1) do |i| %>
      <%= render(:partial => 'step_horizontal', :object => @steps[i], :locals => {:number => i}) %>
    <% end %>
  <% end %>
</div-->    
<%#= link_to 'New path', new_path_path %>
    
